<%@page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*, KC.ModSeg.*"%>
<%
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", -1); //prevents caching at the proxy server
%>
<%@ include file="Connections/conDB.jsp" %>
<% int validaSession = -1; %>
<%@ include file="Connections/session.jsp" %>
<%
//--- verifica si la conexion es segura si no redirecciona
boolean conexionS = request.isSecure();

out.print(conexionS+"<br>");
out.print(ipClient+"<br>");
%>
<html>
<head>
<title>CPIngredientes - CIMa v2</title>
</head>
<body>
<%
//--------------

String ErrorMessage = "";
String Rslogin__MMColParam = "";
String Rslogin__MMCo2Param = "";
String mensaje = "";

try {
	session = request.getSession(false);

	Driver DriverRs = (Driver)Class.forName(MM_conDBacp_DRIVER).newInstance();
	Connection ConnRs = DriverManager.getConnection(MM_conDBacp_STRING,MM_conDBacp_USERNAME,MM_conDBacp_PASSWORD);
	// busca si el usuario existe
	String query = "SELECT TOP 1 * FROM master.dbo.sysobjects";
	PreparedStatement StatementRs = ConnRs.prepareStatement(query);
	ResultSet Rsquery = StatementRs.executeQuery();
	
	if (Rsquery.next()) {
             %><%=Rsquery.getString("name")%><%
	}// fin Rsquery.next() login
	Rsquery.close();
	ConnRs.close();
} //fin del try para la conexion
catch(Exception e){ %>
	<%=e.getMessage()%>
<%
}
%>
</body>
</html>
